package org.example.search.util;

import com.google.gson.Gson;
import com.google.gson.JsonObject;

public class GsonUtils {


    public static JsonObject objectToJsonObject(Object object) {
        Gson gson = new Gson();
        String jsonString = gson.toJson(object);
        return gson.fromJson(jsonString, JsonObject.class);
    }
}
